﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/CompanyCenter.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%:SiteResource.Title() %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
<script type="text/javascript" src="/Scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript">
    function DeleteItem(id,sender) {
        if (confirm('您确定删除对此简历的收藏吗？')) {
            $.ajax({
                url: '/Home/DeleteTalent',
                data: { id: id },
                type: 'get',
                success: function (result) {
                    if (result == 1) {
                        $(sender).parent().parent().parent().remove();
                    }
                }
            });
        }
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
<div class="usercenter-main">
                    <div class="usercenter-main-topbg">
                    </div>
                    <div class="usercenter-main-content">
                        <div class="usercenter-messagebox">
                            Important Messages!
                        </div>
                        <div class="usercenter-main-content-title">
                            <div class="usercenter-main-content-title-left">
                                简历库</div>
                        </div>
                        <div class="usercenter-notes">
                            简历库为企业用户提供简历管理，通过点击简历右上方的"加入简历库"即可将对应简历入库，以便管理查阅！</div>
                        <div class="listbox2">
                        <%var list = ViewData["Data"] as ItemListBox<TalentModel>;
                          if (list != null && list.Data.Any())
                          {
                              foreach (var item in list.Data)
                              { %>
                                <div class="listbox-item">
                                <div class="listbox-item-title">
                                    <div class="left" style="width: 150px">
                                        <a target="_blank" href="/home/Resume_<%:item.Resume.Id %>"><%:item.Resume.Title%></a></div>
                                    <div class="left" style="width: 60px; text-align: center">
                                        <%:item.Resume.RealName%></div>
                                    <div class="left" style="width: 50px; text-align: center">
                                        <%:item.Resume.Gender.Mapping()%></div>
                                    <div class="left" style="margin-left: 30px">
                                        <%:item.Resume.Status.Mapping()%></div>
                                    <div class="right">
                                        <a href="javascript:;" onclick="DeleteItem('<%:item.Id %>',this)">删除</a></div>
                                </div>
                                <div class="listbox-item-bottomline">
                                </div>
                                </div>
                        <%    }
                          }
                          else
                          {%>
                          <div class="listbox-item">
                            你没有收藏任何人才信息。您可以通过<a target="_blank" href="/CompanyCenter/Recruiting">发布兼职</a>，收取简历后添加对人才的收藏。
                            <div class="listbox-item-bottomline"></div>
                          </div>
                        <%} %>
                            <div class="listbox-bottom">
                            <div class="listbox-bottom-item">
                                <!--下一页-->
                                <%if (list.NextPage <= 0 || list.NextPage >= list.TotlePage-1)
                                  { %>
                                  <a class="next1" href="javascript:;"></a>
                                <%}
                                  else
                                  { %>
                                <a class="next" href="?page=<%:list.NextPage %>"></a>
                                <%} %>
                            </div>
                            <div class="listbox-bottom-item">
                                <!--上一页-->
                                <%if (list.CurrentPage!= 1 && list.PrePage <= 0)
                                  { %>
                                  <a class="prev1" href="javascript:;"></a>
                                <%}
                                  else
                                  { %>
                                <a class="prev" href="?page=<%:list.PrePage %>"></a>
                                <%} %>
                            </div>
                            <div class="listbox-bottom-item">
                                <%:list.CurrentPage + 1%>/<%:list.TotlePage%>&nbsp;&nbsp;&nbsp;
                            </div>
                            </div>
                            
                        </div>
                    </div>
                    <div class="usercenter-main-bottombg">
                    </div>
                </div>
</asp:Content>


